// 代替js中object js 终于有了根正苗红的hashmap

let zl={
    name:'杨氏双缝',
    go:'安静'
}

const dogs = new Map(); // es6提供的数据结构

dogs.set('snickers',3);
dogs.set('sunny',2);
dogs.set('hugo',10);

dogs.forEach((val,key)=>{
    console.log(val,key);
})

console.log(Object.keys(zl));
// console.log(Object.keys(dogs));
console.log(dogs.keys());